//
//  UserInfoModel.h
//  AccountSys
//
//  Created by guoshiqing on 2018/5/24.
//

#import <Foundation/Foundation.h>
// 字典和对象互转
#import "MJExtension.h"

@interface TeamShortInfo : NSObject
@property (nonatomic, copy) NSString *iTeamId;
@property (nonatomic, copy) NSString *sTeamName;
// 1我创建的团队，2我加入的团队并且我是管理员，3我加入的团队
@property (nonatomic, assign) NSUInteger iRole;
@end


@interface TeamFullInfo : NSObject
@property (nonatomic, copy) NSString *iTeamId;
@property (nonatomic, copy) NSString *sTeamName;
@property (nonatomic, assign) NSUInteger iRole;
- (instancetype)initWithShortInfo:(TeamShortInfo *)shortInfo;
- (instancetype)initWithFullInfo:(TeamFullInfo *)fullInfo;
@end


@interface UserInfoModel : NSObject

@property (nonatomic, copy) NSString *dBirth;
@property (nonatomic, assign) NSInteger iGender;
@property (nonatomic, assign) NSInteger iUserId;
@property (nonatomic, copy) NSString *sAvatar;
// 新增账号字段 注册时随机生成一个字符串账号 每人只有一次修改机会
// 长度不少于5个字符不超过19个字符/以数字、字母、- 、_ 、构成/首字符必须以字母开头/字母不限制大写和小写字母
@property (nonatomic, copy) NSString *sAccount;
// 手机+国家地区码
@property (nonatomic, copy) NSString *iZoneNum;
@property (nonatomic, copy) NSString *sPhone;
// 认证id
@property (nonatomic, copy) NSString *sEssid;
@property (nonatomic, copy) NSString *sMail;
@property (nonatomic, copy) NSString *sEnglishName;
@property (nonatomic, copy) NSString *sRegion;
@property (nonatomic, copy) NSString *sRealName;
@property (nonatomic, copy) NSString *sCompanyName;
@property (nonatomic, copy) NSString *sPositionName;



@property (nonatomic, strong) NSArray <TeamShortInfo *> *team;

@end
